package com.market.plus.core.dto;

import com.googlecode.simpleobjectassembler.annotation.EntityDto;

@EntityDto(id = "id")
public class ContentFileDto {

   private Long id;

   private String guid;

   private Integer status;

   private String fileName;

   private String mineType;

   private String tooltip;

   public ContentFileDto() {
   }

   public Long getId() {
      return id;
   }

   public void setId(Long id) {
      this.id = id;
   }

   public String getGuid() {
      return guid;
   }

   public void setGuid(String guid) {
      this.guid = guid;
   }

   public String getFileName() {
      return fileName;
   }

   public void setFileName(String fileName) {
      this.fileName = fileName;
   }

   public String getMineType() {
      return mineType;
   }

   public void setMineType(String mineType) {
      this.mineType = mineType;
   }

   public Integer getStatus() {
      return status;
   }

   public void setStatus(Integer status) {
      this.status = status;
   }

   public String getTooltip() {
      return tooltip;
   }

   public void setTooltip(String tooltip) {
      this.tooltip = tooltip;
   }

   @Override
   public boolean equals(Object obj) {
      ContentFileDto propertyCompare = (ContentFileDto) obj;
      if (this.getId() == null){
         return super.equals(obj);
      }else{
         if (this.getId().longValue() == propertyCompare.getId().longValue()) {
            return true;
         }
      }
      return false;
   }
}
